import 'package:flutter/widgets.dart';

class LineX {
  LineX._();

  static Color defaultColor = const Color(0xFFF1F1F1);

  /// 水平线条
  static Widget h({
    double width = double.infinity,
    double height = 1,
    Color? color,
    EdgeInsetsGeometry? margin,
  }) {
    return Container(
      width: width,
      height: height,
      color: color ?? defaultColor,
      margin: margin,
    );
  }

  /// 水平线条
  static Widget v({
    double width = 1,
    double height = double.infinity,
    Color? color,
    EdgeInsetsGeometry? margin,
  }) {
    return Container(
      width: width,
      height: height,
      color: color ?? defaultColor,
      margin: margin,
    );
  }
}
